package com.acme.bankapp.domain.bank;

/**
 * @author Andrey Alekov
 *
 */
import com.acme.bankapp.service.bank.AbstractAccount;

public class Client {
	String name;
	Gender gender = Gender.MALE;
	AbstractAccount account;

	public Client(String clientName, Gender clientGender) {
		this.setGender(clientGender);
		this.setName(clientName);
	}

	public AbstractAccount getAccounts() {
		return this.account;
	}

	public String getClientSalutation() {
		return this.gender.getGreetings();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}

	public AbstractAccount getAccount() {
		return account;
	}

	public void setAccount(AbstractAccount account) {
		this.account = account;
	}

	public String toString() {
		return "Client: " + getClientSalutation() + " " + this.name;
	}
}
